<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<!--关于我页面-->

<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>关于我</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">
</head>
<body>

    <!--导航-->      <!--inverted 反转  反色-->
    <nav th:replace="_fragments :: menu(5)" class="ui inverted attached segment m-padded-tb-mini">   <!--引入m-padded-tb-mini  在me.css中自定义导航栏-->
        <div class="ui container">          <!--让logo不那么靠左边-->
            <div class="ui inverted secondary stackable menu">     <!--stackable可堆叠 响应手机端 APP访问-->
                <h2 class="ui teal header item">LinYD</h2>    <!--导航栏上的logo   teal一种颜色-->
                <!--m-mobile-hide手机端隐藏-->
                <a href="#" class="m-item item m-mobile-hide"><i class="home icon"></i> 首页</a>   <!--<i class="home icon"></i>在条目前加上相应的图标-->
                <a href="#" class="m-item item m-mobile-hide"><i class="idea icon"></i> 分类</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="tags icon"></i> 标签</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="time icon"></i> 归档</a>
                <a href="#" class="active m-item item m-mobile-hide"><i class="info icon"></i> 关于我</a>

                <div class="right m-item item m-mobile-hide">   <!--right item 让此条目靠右-->
                    <div class="ui icon inverted transparent input">   <!--transparent 设置透明-->
                        <input type="text" placeholder="Search.....">   <!--搜索框-->
                        <i class="search link icon"></i>
                    </div>
                </div>

                <div class="right m-item item m-mobile-hide">   <!--right item 让此条目靠右-->
                    <a href="#" class="item">登录</a>
                    </div>
                <div class="right m-item item m-mobile-hide">   <!--right item 让此条目靠右-->
                    <a href="#" class="item">注册</a>
                </div>
                </div>


            </div>
        </div>
        <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">  <!--m-right-top 将此按钮定义到右上-->  <!--m-mobile-show pc端隐藏 app展示-->
            <i class="sidebar icon"></i>
        </a>

    </nav>

    <!--中间内容-->
    <div class="m-container m-padded-tb-big">
        <div class="ui container">
            <div class="ui stackable grid">
                <div class="eleven wide column">
                    <img src="../static/images/aboutme.jpg" th:src="@{/images/aboutme.jpg}" style="width: 800px" alt="" class="ui rounded image ">
                </div>

                <div class="five wide column">
                    <div class="ui attached segment">
                        <p class="m-text">努力学习Java后端的01年小伙；热爱编程，创造属于自己的作品。</p>
                        <p class="m-text">对于编程，道阻且长，行则将至。</p>
                    </div>
                    <div class="ui attached segment">
                        <div class="ui purple basic label m-margin-tb-tiny">编程</div>
                        <div class="ui red basic label m-margin-tb-tiny">篮球</div>
                        <div class="ui green basic label m-margin-tb-tiny">游戏</div>
                        <div class="ui blue basic label m-margin-tb-tiny">听歌</div>
                        <div class="ui teal basic label m-margin-tb-tiny">电影</div>
                    </div>
                    <div class="ui attached segment">
                        <div class="ui green basic label m-margin-tb-tiny">Java</div>
                        <div class="ui red basic label m-margin-tb-tiny">MYSQL</div>
                        <div class="ui yellow basic label m-margin-tb-tiny">Redis</div>
                        <div class="ui purple basic label m-margin-tb-tiny">SSM</div>
                        <div class="ui blue basic label m-margin-tb-tiny">RabbitMQ</div>
                        <div class="ui teal basic label m-margin-tb-tiny">SpringBoot</div>
                        <div class="ui black basic label m-margin-tb-tiny">Java后端</div>
                        <div class="ui brown basic label m-margin-tb-tiny">Git</div>

                    </div>
                    <div class="ui bottom center aligned attached segment">
                        <a id="payButton1" href="#" class="ui circular icon button"><i class="wechat icon"></i></a>
                    </div>
                    <div class="ui payQ1 flowing popup transition hidden">
                        <div class="ui basic label">
                            <div class="ui images">
                                <div class="image">
                                    <img src="../static/images/wechat.jpg" th:src="@{/images/wechat.jpg}" alt="" class="ui rounded bordered image" style="width: 120px">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>

    </div>


    <!--底部footer-->
    <footer th:replace="_fragments :: footer" class="ui inverted vertical segment m-padded-tb-massive">  <!--m-padded-tb-massive  自定义底部宽度-->
        <div class="ui center aligned container">
            <div class="ui inverted divided stackable grid">  <!--布局 列-->   <!--divided 列分割线-->
                <div class="three wide column">
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../static/images/wechat.jpg" class="ui rounded image" alt="" style="width: 120px">   <!--设置底部微信二维码-->
                        </div>
                    </div>
                </div>

                <div class="three wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced ">最新博客</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item">Java面试最热八股文</a>
                        <a href="#" class="item">Java基础过一遍</a>
                        <a href="#" class="item">SpringBoot的常用组件</a>
                    </div>
                </div>

                <div class="three wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced ">联系我</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item">Email：940951719@qq.com</a>
                        <a href="#" class="item">QQ：940951719</a>
                        <a href="#" class="item">Wechat：Lyd_2166</a>
                    </div>
                </div>

                <div class="seven wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced ">LinYD</h4>
                    <p class="m-text-thin m-text-spaced m-opacity-mini">这是我的个人博客，用来分享我的一些编程学习笔记和心得等内容，希望这些内容对看到的人有所帮助</p>

                </div>

            </div>
            <div class="ui inverted section divider"></div>   <!--底部分割线-->
            <p class="m-text-thin m-text-spaced m-opacity-mini">Copyright@2022-2023 LinYD Designed by LinYD</p>
        </div>

    </footer>

    <!--/*/<th:block th:replace="_fragments :: script">/*/-->
    <script src="../static/lib/jQuery/jQuery.js" th:src="@{/js/jQuery.js}"></script>
    <script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
    <!--/*/</th:block>/*/-->
    <!--点击事件，在手机端点击按钮后显示原本隐藏的目录-->
    <script type="text/javascript">
        $('.menu.toggle').click(function (){
           $('.m-item').toggleClass('m-mobile-hide');
        });
        $('#payButton1').popup({
            popup : $('.payQ1.popup'),
            on : 'click',
            position : 'bottom center'
        });


        (function (window, document, undefined) {
            let hearts = [];
            window.requestAnimationFrame = (function () {
                return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame ||
                    function (callback) {
                        setTimeout(callback, 1000);
                    }
            })();
            init();

            function init() {
                cssFun(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: absolute;}.heart:after{top: -5px;}.heart:before{left: -5px;}");
                attachEvent();
                gameloop();
            }

            function gameloop() {
                for (let i = 0; i < hearts.length; i++) {
                    if (hearts[i].alpha <= 0) {
                        document.body.removeChild(hearts[i].el);
                        hearts.splice(i, 1);
                        continue;
                    }
                    hearts[i].y--;
                    hearts[i].scale += 0.004;
                    hearts[i].alpha -= 0.013;
                    hearts[i].el.style.cssText = "left:" + hearts[i].x + "px;top:" + hearts[i].y + "px;opacity:" + hearts[i].alpha + ";transform:scale(" + hearts[i].scale + "," + hearts[i].scale + ") rotate(45deg);background:" + hearts[i].color;
                }
                requestAnimationFrame(gameloop);
            }

            /**
             * 附加事件.:创建小心心
             */
            function attachEvent() {
                let old = typeof window.onclick === "function" && window.onclick;
                window.onclick = function (event) {
                    old && old();
                    createHeart(event);
                }
            }

            function createHeart(event) {
                let d = document.createElement("div");
                d.className = "heart";
                hearts.push({
                    el: d,
                    x: event.clientX - 5,
                    y: event.clientY - 5,
                    scale: 1,
                    alpha: 1,
                    color: randomColor()
                });
                document.body.appendChild(d);
            }

            function cssFun(css) {
                let style = document.createElement("style");
                style.type = "text/css";
                try {
                    style.appendChild(document.createTextNode(css));
                } catch (ex) {
                    style.styleSheet.cssText = css;
                }
                document.getElementsByTagName('head')[0].appendChild(style);
            }

            /**
             *随机颜色
             */
            function randomColor() {
                return "rgb(" + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + ")";
            }
        })(window, document);



    </script>
</body>
</html>